package com.app.toknow.Entity.DBTable;

import android.text.format.Time;

import java.io.Serializable;

/**
 * Created by kangw on 2015/10/12.
 */
public class T_UserInfo implements Serializable{

    private int UserID;
    private String UserName;
    private String NickName;
    private String PassWord;
    private String Email;
    private Time Birthday;
    private String Education;
    private String UserType;
    private String TellPhone;
    private String Province;
    private String Motto;
    private String Resume;
    private String AvatarUrl;
    //用户ID
    public int getUserID(){
        return UserID;
    }
    public void setUserID(int userID){
        this.UserID = userID;
    }
    //真实姓名
    public String getUserName(){
        return UserName;
    }
    public void setUserName(String userName){
        this.UserName = userName;
    }

    //昵称
    public String getNickName(){
        return NickName;
    }
    public void setNickName(String nickName){
        this.NickName = nickName;
    }

    //密码
    public String getPassWord(){
        return PassWord;
    }
    public void setPassWord(String passWord){
        this.PassWord = passWord;
    }
    //邮箱
    public String getEmail(){
        return Email;
    }
    public void setEmail(String email){
        this.Email = email;
    }
    //
    public Time getBirthday(){
        return Birthday;
    }
    public void setBirthday(String birthday){
        Time time = new Time();
        if(birthday.toString().length()==8) {
            time.parse(birthday);
            this.Birthday = time;
        }
        else
        {
            time.parse("19770101");
            this.Birthday = time;
        }
    }

    //学历
    public String getEducation(){
        return Education;
    }
    public void setEducation(String education){
        this.Education = education;
    }

    //用户类型：学生001、教师010
    public String getUserType(){
        return UserType;
    }
    public void setUserType(String userType){
        this.UserType = userType;
    }
    //电话
    public String getTellPhone(){
        return TellPhone;
    }
    public void setTellPhone(String tellPhone){
        this.TellPhone = tellPhone;
    }
    //省份
    public String getProvince(){
        return Province;
    }
    public void setProvince(String province){
        this.Province = province;
    }
    //座右铭
    public String getMotto(){
        return Motto;
    }
    public void setMotto(String motto){
        this.Motto = motto;
    }
    //个性签名、个人简历
    public String getResume(){
        return Resume;
    }
    public void setResume(String resume){
        this.Resume = resume;
    }
    //头像路径
    public String getAvatarUrl(){
        return AvatarUrl;
    }
    public void setAvatarUrl(String avatarUrl){
        this.AvatarUrl = avatarUrl;
    }
}
